/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package technotheist.data.grid;

import technotheist.data.wrap.BMatrix2D;

/**
 *
 * @author Mitch
 */
public class BorderPlane<T> {
    public final BorderType type;
    public final BMatrix2D<T> grid;

    public BorderPlane(BorderType type, BMatrix2D<T> grid) {
	this.type = type;
	this.grid = grid;
    }

    public BorderLine<T> createChild(int x) {
	return new BorderLine(type, grid.createSubBuffer(x));
    }
    
}
